package java56_2;

public class MathTest {

	public static void main(String[] args) {
		int a = 23, b = -7;
		int c = a / b;
		int d = a % b;

		System.out.println("c=" + c + "\n d=" + d);
		d++;

		System.out.println("d=" + d);
		double d1 = 23.7;
		double d2 = 5.6;
		double d3 = d1 / d2;
		double d4 = d1 % d2;
		System.out.println("d3=" + d3 + "\nd4=" + d4);
		d4++;
		System.out.println("d4=" + d4);
		System.out.println(">>>>>>>>>>>>狠>>>>>>>>");

		int i = 5, j = 2;
		double f = (double) i / j;
		System.out.println("f=" + f);
	}

}
